package com.ruoyi.goodsInfo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.goodsInfo.domain.Goods;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class GoodsVo {

    private Goods goods;
    private Long brandId;


    /**
     * $column.columnComment
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String goodsName;

    /**
     * 图片地址（数组）
     */
//            @Excel(name = "图片地址", readConverterExp = "数=组")
    private String goodsPictureUrls;

    /**
     * 价格
     */
    @Excel(name = "价格")
    private BigDecimal goodsPrice;

    /**
     * 库存
     */
    @Excel(name = "库存")
    private Long goodsNumber;

    /**
     * 销量
     */
    @Excel(name = "销量")
    private Long salesVolume;

    /**
     * 商品海报
     */
//            @Excel(name = "商品海报")
    private String poster;

    /**
     * $column.columnComment
     */
    private String createPeople;

    /**
     * $column.columnComment
     */
    private Date updatePeople;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间")
    private Date createTime;
    @JsonIgnore
    private String searchValue;

    /** 创建者 */
    private String createBy;


    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 备注 */
    private String remark;
}
